home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 December
/
PCWorld_2006-12_cd.bin
/
audio-video
/
audacity
/
audacity-win-unicode-1.3.2.exe
/
{app}
/
Nyquist
/
seqfnint.lsp
< prev
next >
Wrap
Lisp/Scheme
|
2003-10-01
|
972b
|
35 lines
(setfn seq-tag first)
(setfn seq-time second)
(setfn seq-line third)
(setfn seq-channel fourth)
(defun seq-value1 (e) (nth 4 e))
(setfn seq-pitch seq-value1) ; pitch of a note
(setfn seq-control seq-value1) ; control number of a control change
(setfn seq-program seq-value1) ; program number of a program change
(setfn seq-bend seq-value1) ; pitch bend amount
(setfn seq-touch seq-value1) ; aftertouch amount
(defun seq-value2 (e) (nth 5 e))
(setfn seq-velocity seq-value2) ; velocity of a note
(setfn seq-value seq-value2) ; value of a control change
(defun seq-duration (e) (nth 6 e))
(setf seq-done-tag 0)
(setf seq-other-tag 1)
(setf seq-note-tag 2)
(setf seq-ctrl-tag 3)
(setf seq-prgm-tag 4)
(setf seq-touch-tag 5)
(setf seq-bend-tag 6)
; arch-tag: f0cfa041-b4fb-41e9-aad5-24568c5bc246